package edu.stanford.cs.cs294s;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

public class AddFact extends Activity {
	TextView mPlaceName;
	EditText mNewFact;
	Button mSubmit;
	
	OnClickListener GetmSubmit = new OnClickListener() {		
		public void onClick(View view) {
			//Context context = view.getContext();
			Intent factpage = new Intent(getBaseContext(), LocationTabWidget.class);
			startActivityForResult(factpage, 100);
		}
	};
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.simpleedit);
        
		mSubmit = (Button)findViewById(R.id.submitButton);
		mSubmit.setOnClickListener(GetmSubmit);
    }
    

}
